describe('practice-4-5', function () {

    it("列出真分数且是最简分数的分数", function () {
        var arr_result = listed_in_true_fraction_series();
        console.info(arr_result);
        expect(arr_result.length).toBe(16);
        for(var i = 0;i < arr_result.length; i ++)
        {
            var m = arr_result[i].denominator;
            var n = arr_result[i].numerator;
            while(n > 1)
            {
                var temp = m % n;
                if(temp === 0)
                {
                    break;
                }
                else
                {
                    m = n;
                    n = temp;
                }
            }
            expect(n).toBe(1);
        }
    });

});
